#include <iostream>
#include "mbuild.h"

 int main(int argc,char* argv[]) {
	 if (argc != 4) {
		 cout<<"Usage:\n";
		 cout<<"compare dxfile1.dx dxfile2.dx outfile.dx\n";
		 return 0;
	 }
	 GridSpace g1,g2;
	 DxFile::read_dx(argv[1],&g1);
	 DxFile::read_dx(argv[2],&g2);
	 GridSpace* g3;
	 g3=g1.substract(g2);
	 DxFile::write_dx(argv[3],g3);
 return 0;
 }
 
